package cn.iocoder.yudao.module.resource.service.usertimemanager;

import cn.iocoder.yudao.module.resource.api.enums.UserTimeTransactionTypeEnum;

public interface IUserTimeManagerService {

    void purchaseTime(Long userId, UserTimeTransactionTypeEnum transactionType, Long orderId, Long timeMs);

    boolean consumeTime(Long userId, String gameMatchId, Integer roleId, String roleName, Long timeMs);

    Long getRemainingTimeMs(Long userId);

}
